package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 知识点dto类
 * Created by chenxin on 2014/12/18.
 */
public class KpDto {
    private Long id = Long.valueOf(0); //知识点ID

    @NotNull
    @Length(min = 1, max = 60, message = "知识点名称长度应为1~60字符")
    private String name; //知识点名称

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
